package com.example.controller;

import javax.servlet.http.HttpServletRequest;


import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.service.ExportService;
import com.example.service.QuexianService;



@RestController
@RequestMapping("/exportExcel")
public class ExportController {
	@Autowired
	private ExportService exportService;
	@Autowired
	QuexianService service;
	
	// 导出excel
		@RequestMapping("/daochu")
		public ResponseEntity<byte[]> exportExcel2(HttpServletRequest request, HttpServletResponse response) {
			return exportService.exportExcelIsXQ(request,response,service.findallque());
		}
		
		
	
}
